]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[StThemeNode] allow "background-gradient-direction: none"
authorDan Winship <danw@gnome.org>
Tue, 23 Feb 2010 16:13:58 +0000 (11:13 -0500)
committerDan Winship <danw@gnome.org>
Tue, 23 Feb 2010 19:44:57 +0000 (14:44 -0500)
this lets a more-specific CSS rule turn off the gradient inherited
from a less-specific rule

https://bugzilla.gnome.org/show_bug.cgi?id=610856

src/st/st-theme-node.c

index 8875378f1ed03488d24d922314bd13a0ecb3979f..0449d794a90051e86b82f5cb737279854b4d865a 100644 (file)
@@ -1394,6 +1394,10 @@ ensure_background (StThemeNode *node)
             {
               node->background_gradient_type = ST_GRADIENT_RADIAL;
             }
+          else if (strcmp (term->content.str->stryng->str, "none") == 0)
+            {
+              node->background_gradient_type = ST_GRADIENT_NONE;
+            }
           else
             {
               g_warning ("Unrecognized background-gradient-direction \"%s\"",